/*
 * @Author: your name
 * @Date: 2020-06-09 18:02:39
 * @LastEditTime: 2020-06-09 18:05:39
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \knowledge\js\monentdemo.js
 */ 

// requir from 'moment'
let _m =  require('moment')

 var a =_m([2008,9,2])
 var b =_m([2008,9,1])

console.log( a.diff(b,'days'))